package com.ruoyi.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 用户列表对象 user_info
 * 
 * @author ruoyi
 * @date 2024-05-11
 */
public class UserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户表主键 */
    private Long id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String userNum;

    /** 用户名 */
    private String userName;

    /** 密码 */
    private String password;

    /** 姓名 */
    @Excel(name = "姓名")
    private String realName;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNumber;

    /** 职业信息 */
    @Excel(name = "职业信息")
    private String occupation;

    /** 学历 */
    @Excel(name = "学历")
    private String schoolExperience;

    /** 是否认证： 0是  1否 */
    @Excel(name = "是否认证： 0是  1否")
    private Long isApprove;

    /** 是否房东：0是 1否 */
    @Excel(name = "是否房东：0是 1否")
    private Long isLandlord;

    /** 银行卡号 */
    @Excel(name = "银行卡号")
    private String bankCard;

    @Transient
    private String keyword;


    @Transient
    private Integer houseCount;


    public Integer getHouseCount() {
        return houseCount;
    }

    public void setHouseCount(Integer houseCount) {
        this.houseCount = houseCount;
    }

    /** 用户创建时间 */
    private Date creatTime;

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserNum(String userNum) 
    {
        this.userNum = userNum;
    }

    public String getUserNum() 
    {
        return userNum;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setIdNumber(String idNumber) 
    {
        this.idNumber = idNumber;
    }

    public String getIdNumber() 
    {
        return idNumber;
    }
    public void setOccupation(String occupation) 
    {
        this.occupation = occupation;
    }

    public String getOccupation() 
    {
        return occupation;
    }
    public void setSchoolExperience(String schoolExperience) 
    {
        this.schoolExperience = schoolExperience;
    }

    public String getSchoolExperience() 
    {
        return schoolExperience;
    }
    public void setIsApprove(Long isApprove) 
    {
        this.isApprove = isApprove;
    }

    public Long getIsApprove() 
    {
        return isApprove;
    }
    public void setIsLandlord(Long isLandlord) 
    {
        this.isLandlord = isLandlord;
    }

    public Long getIsLandlord() 
    {
        return isLandlord;
    }
    public void setBankCard(String bankCard) 
    {
        this.bankCard = bankCard;
    }

    public String getBankCard() 
    {
        return bankCard;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userNum", getUserNum())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("realName", getRealName())
            .append("sex", getSex())
            .append("phone", getPhone())
            .append("idNumber", getIdNumber())
            .append("occupation", getOccupation())
            .append("schoolExperience", getSchoolExperience())
            .append("isApprove", getIsApprove())
            .append("isLandlord", getIsLandlord())
            .append("bankCard", getBankCard())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
